<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="newOpenAccount.title"/></title>
    <meta name="heading" content="<fmt:message key='newOpenAccount.heading'/>"/>
    <meta name="menu" content="YAReportMenu"/>
    <link type="text/css" href="<c:url value='/scripts/jquery-ui/css/smoothness/jquery-ui-1.8.12.custom.css'/>" rel="stylesheet" />	
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-1.5.1.min.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-ui-1.8.12.custom.min.js'/>"></script>
	<script>
	$(function() {
		$( "#queryForm_start" ).datepicker();
		$( "#queryForm_end" ).datepicker();
	});
</script>
</head>
<div id="query">
	<s:form id="queryForm" action="newOpenAccountReport" method="get">
		<s:textfield key="start" required="true" cssClass="text medium"/>
		<s:textfield key="end" required="true" cssClass="text medium"/>
		<li class="buttonBar bottom">
			<s:submit cssClass="button" theme="simple"/>
		</li>
	</s:form>
</div>

<display:table name="newOpenAccountList"  defaultsort="1" defaultorder="ascending" requestURI="" class="table" id="newOpenAccountList" export="true" pagesize="25">
    <display:column property="staff.dept" group="1" sortable="true" titleKey="staff.dept"/>
    <display:column property="staff.staffId" group="2"  media="csv excel xml pdf" titleKey="staff.staffId"/>
   	<display:column property="staff.name" group="3" sortable="true" titleKey="staff.name"/>
   	
   	<display:column property="openAccount" sortable="true" titleKey="newOpenAccount.openAccount"/>
   	<display:column property="openShAccount" sortable="true" titleKey="newOpenAccount.openShAccount"/>
    <display:column property="openSzAccount" sortable="true" titleKey="newOpenAccount.openSzAccount"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="newOpenAccountList.newOpenAccounts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="newOpenAccountList.newOpenAccounts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="newOpenAccountList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="newOpenAccountList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="newOpenAccountList.title"/>.pdf</display:setProperty>
</display:table>


<display:table name="accountList" defaultsort="5" defaultorder="ascending" requestURI="" class="table" id="accountList" export="true" pagesize="25">

    <display:column property="id" media="csv excel xml pdf" titleKey="account.id"/>
    <display:column property="account" sortable="true" titleKey="account.account"/>
    <display:column property="name" sortable="true" titleKey="account.name"/>
    <display:column property="staff.staffId" group="1" sortable="true" titleKey="staff.staffId"/>
    <display:column property="staff.name" group="2" sortable="true" titleKey="staff.name"/>
    <display:column property="openDay" group="3" sortable="true" titleKey="account.openDay"/>
	<display:column property="transfer" group="4" sortable="true" titleKey="account.transfer"/>
	<display:column property="stockShNumber" sortable="true" titleKey="account.stockShNumber"/>
	<display:column property="stockShOpenDay" sortable="true" titleKey="account.stockShOpenDay"/>
	<display:column property="stockShNumberB" sortable="true" titleKey="account.stockShNumberB"/>
	<display:column property="stockShOpenDayB" sortable="true" titleKey="account.stockShOpenDayB"/>
	<display:column property="stockSzNumber" sortable="true" titleKey="account.stockSzNumber"/>
	<display:column property="stockSzOpenDay" sortable="true" titleKey="account.stockSzOpenDay"/>
	<display:column property="stockSzNumberB" sortable="true" titleKey="account.stockSzNumberB"/>
	<display:column property="stockSzOpenDayB" sortable="true" titleKey="account.stockSzOpenDayB"/>
    <display:column property="subTime" sortable="true" titleKey="account.subTime"/>
    <display:column property="remark" sortable="true" titleKey="account.remark"/>
    <display:column property="lastModifyTime" sortable="true" titleKey="account.lastModifyTime"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="accountList.accounts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountList.accounts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountList.title"/>.pdf</display:setProperty>
</display:table>


<display:table name="accountShList" defaultsort="8" defaultorder="ascending" class="table" requestURI="" id="accountShList" export="true" pagesize="25">

    <display:column property="id" media="csv excel xml pdf" titleKey="account.id"/>
    <display:column property="account" sortable="true" titleKey="account.account"/>
    <display:column property="name" sortable="true" titleKey="account.name"/>
    <display:column property="staff.staffId" group="1" sortable="true" titleKey="staff.staffId"/>
    <display:column property="staff.name" group="2" sortable="true" titleKey="staff.name"/>
    <display:column property="openDay" group="3" sortable="true" titleKey="account.openDay"/>
	<display:column property="transfer" group="4" sortable="true" titleKey="account.transfer"/>
	<display:column property="stockShNumber" sortable="true" titleKey="account.stockShNumber"/>
	<display:column property="stockShOpenDay" sortable="true" titleKey="account.stockShOpenDay"/>
	<display:column property="stockShNumberB" sortable="true" titleKey="account.stockShNumberB"/>
	<display:column property="stockShOpenDayB" sortable="true" titleKey="account.stockShOpenDayB"/>
	<display:column property="stockSzNumber" sortable="true" titleKey="account.stockSzNumber"/>
	<display:column property="stockSzOpenDay" sortable="true" titleKey="account.stockSzOpenDay"/>
	<display:column property="stockSzNumberB" sortable="true" titleKey="account.stockSzNumberB"/>
	<display:column property="stockSzOpenDayB" sortable="true" titleKey="account.stockSzOpenDayB"/>
    <display:column property="subTime" sortable="true" titleKey="account.subTime"/>
    <display:column property="remark" sortable="true" titleKey="account.remark"/>
    <display:column property="lastModifyTime" sortable="true" titleKey="account.lastModifyTime"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="accountList.accounts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountList.accounts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountList.title"/>.pdf</display:setProperty>
</display:table>


<display:table name="accountSzList" defaultsort="12" defaultorder="ascending" class="table" requestURI="" id="accountSzList" export="true" pagesize="25">

    <display:column property="id" media="csv excel xml pdf" titleKey="account.id"/>
    <display:column property="account" sortable="true" titleKey="account.account"/>
    <display:column property="name" sortable="true" titleKey="account.name"/>
    <display:column property="staff.staffId" group="1" sortable="true" titleKey="staff.staffId"/>
    <display:column property="staff.name" group="2" sortable="true" titleKey="staff.name"/>
    <display:column property="openDay" group="3" sortable="true" titleKey="account.openDay"/>
	<display:column property="transfer" group="4" sortable="true" titleKey="account.transfer"/>
	<display:column property="stockShNumber" sortable="true" titleKey="account.stockShNumber"/>
	<display:column property="stockShOpenDay" sortable="true" titleKey="account.stockShOpenDay"/>
	<display:column property="stockShNumberB" sortable="true" titleKey="account.stockShNumberB"/>
	<display:column property="stockShOpenDayB" sortable="true" titleKey="account.stockShOpenDayB"/>
	<display:column property="stockSzNumber" sortable="true" titleKey="account.stockSzNumber"/>
	<display:column property="stockSzOpenDay" sortable="true" titleKey="account.stockSzOpenDay"/>
	<display:column property="stockSzNumberB" sortable="true" titleKey="account.stockSzNumberB"/>
	<display:column property="stockSzOpenDayB" sortable="true" titleKey="account.stockSzOpenDayB"/>
    <display:column property="subTime" sortable="true" titleKey="account.subTime"/>
    <display:column property="remark" sortable="true" titleKey="account.remark"/>
    <display:column property="lastModifyTime" sortable="true" titleKey="account.lastModifyTime"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="accountList.accounts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountList.accounts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountList.title"/>.pdf</display:setProperty>
</display:table>

<script type="text/javascript">
 highlightTableRows("newOpenAccountList");
  highlightTableRows("accountList");
   highlightTableRows("accountShList");
    highlightTableRows("accountSzList");
</script>